@use "src/styles/slide-up" as *;

.SelectorBase {
  &-button {
    cursor: pointer;

    &:hover:not(&-disabled) {
      color: var(--color-blue-300);
    }

    &-disabled {
      cursor: text;
      opacity: 1;
    }
  }

  &-panel {
    position: relative;
    z-index: 1000;

    font-size: var(--font-sm);

    border-radius: var(--border-radius-sm);
    background-color: var(--dark-blue-bg);
    border: 1px solid var(--color-gray-800);
  }

  &-mobile-modal {
    .Modal-content {
      top: auto;
      bottom: auto;

      width: 42rem;
      position: absolute;
      max-height: 100vh;

      @media screen and (max-width: 700px) {
        bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;

        height: 80vh;

        @include slide-up;
      }
    }
  }
}

.SelectorBaseUtils {
  &-table-head-row {
    th {
      text-align: left;

      padding: 0.75rem 1.5rem;
      text-transform: uppercase;
      font-weight: normal;
      opacity: 0.7;
    }
  }

  &-row {
    cursor: pointer;

    &:hover,
    &:active {
      background: var(--color-cold-blue-900);
      box-shadow: inset 0px 0px 3rem 0.5rem rgba(255, 255, 255, 0.01);
    }

    &-disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }

    td {
      padding: 0.75rem 1.5rem;
    }
  }

  &-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  &-mobile-row {
    appearance: none;
    border: unset;
    background-color: unset;
    padding: unset;
    margin: unset;
    text-align: unset;

    color: inherit;
    font-size: var(--font-md);

    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem;

    &:hover,
    &:active {
      background: var(--color-cold-blue-900);
      box-shadow: inset 0px 0px 3rem 0.5rem rgba(255, 255, 255, 0.01);
    }

    &-disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }
  }
}
